package com.gxa.modules.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 作者 yuanqiufeng
 * Date 2022/11/16
 */
@ApiModel(value = "住院信息结果集", description = "住院信息结果集")
@Data
public class DetailInfoDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("住院信息id")
    private Integer id;

    @ApiModelProperty("住院号")
    private String inpatientNum;

    @ApiModelProperty("入院时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date inHospitalTime;

    @ApiModelProperty("出院时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date leaveHospitalTime;

    @ApiModelProperty("住院状态：0：住院中，1：已出院")
    private Integer status;

    @ApiModelProperty("医院名称")
    private String hospitalName;

    @ApiModelProperty("院区名称")
    private String name;

    @ApiModelProperty("科室名字")
    private String departmentName;

}
